package org.rc.service;

import org.rc.entity.UserRoom;

import java.util.List;

public interface UserRoomService {
    void addUserRoom(UserRoom userRoom);
    void updateUserRoom(UserRoom userRoom);
    UserRoom getBindRecordByRoomIdAndUserId(Long roomId, Long userId);
    UserRoom getBindRecordByRoomId(Long roomId);
    void deleteByUserId(Long userId);
    void deleteByRoomId(Long roomId);
    List<UserRoom> getUserRoomsByRoomIds(List<Long> roomIds);
    List<UserRoom> getBindingRoomsByRoomIds(List<Long> roomIds);
    List<UserRoom> getRoomsByUserId(Long userId);
    List<UserRoom> getByUserIds(List<Long> userIds);
    List<UserRoom> getBindRoomUserByRoomIds(List<Long> roomIds);
    List<UserRoom> getAllRoomsByUserId(Long userId);
    List<UserRoom> getUserRoomByCondition(Long roomId,Long userId);
    void updateBatch(List<UserRoom> userRooms);
}
